package android.slc.app

import android.app.Application
import android.slc.app.startup.TaskUtils
import android.slc.commonlibrary.util.ViewModelProviderFactory
import com.effective.android.anchors.AnchorsManager

class AppApplication : Application() {
    override fun onCreate() {
        super.onCreate()
        AnchorsManager.getInstance().start(TaskUtils.getAppTask(this))
    }

    override fun onTerminate() {
        super.onTerminate()
        ViewModelProviderFactory.getAppViewModelStore().clear()
    }
}